package com.etc.entity;

import org.springframework.stereotype.Component;

@Component
public class Comment {
    private Integer commentid;

    private Integer userid;

    private String commentcontent;

    private Integer commentstatus;

    private String commentfile;

    private Integer orderid;

    public Integer getCommentid() {
        return commentid;
    }

    public void setCommentid(Integer commentid) {
        this.commentid = commentid;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getCommentcontent() {
        return commentcontent;
    }

    public void setCommentcontent(String commentcontent) {
        this.commentcontent = commentcontent == null ? null : commentcontent.trim();
    }

    public Integer getCommentstatus() {
        return commentstatus;
    }

    public void setCommentstatus(Integer commentstatus) {
        this.commentstatus = commentstatus;
    }

    public String getCommentfile() {
        return commentfile;
    }

    public void setCommentfile(String commentfile) {
        this.commentfile = commentfile == null ? null : commentfile.trim();
    }

    public Integer getOrderid() {
        return orderid;
    }

    public void setOrderid(Integer orderid) {
        this.orderid = orderid;
    }

	public Comment(Integer userid, Integer orderid) {
		super();
		this.userid = userid;
		this.orderid = orderid;
	}

	public Comment(Integer userid, String commentcontent, String commentfile, Integer orderid) {
		super();
		this.userid = userid;
		this.commentcontent = commentcontent;
		this.commentfile = commentfile;
		this.orderid = orderid;
	}

	public Comment() {
		super();
	}

	public Comment(Integer commentid, Integer userid, String commentcontent, Integer commentstatus, String commentfile,
			Integer orderid) {
		super();
		this.commentid = commentid;
		this.userid = userid;
		this.commentcontent = commentcontent;
		this.commentstatus = commentstatus;
		this.commentfile = commentfile;
		this.orderid = orderid;
	}

	@Override
	public String toString() {
		return "Comment [commentid=" + commentid + ", userid=" + userid + ", commentcontent=" + commentcontent
				+ ", commentstatus=" + commentstatus + ", commentfile=" + commentfile + ", orderid=" + orderid + "]";
	}
	
    
}